/*
 * Brian M. Luger
 * Center Welcome Panel
 * Date: 12/3/2011
 */
package gui.welcome;

import gui.CAFrame;

import java.awt.Color;
import java.awt.FlowLayout;

import javax.swing.BorderFactory;
import javax.swing.ImageIcon;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.border.Border;

/**
 * Center Welcome Panel
 * 
 * @author Brian M. Luger
 * @version 12/3/2011
 */
@SuppressWarnings("serial")
public class WelcomeCenterPanel extends JPanel{
	/**
	 * String representing the Conference Assistant Image
	 * Path.
	 */
	private static final String CA_IMAGE = 
		"src/images/ConferenceImage.png";
	
	/**
	 * Parent Frame
	 */
	private final CAFrame my_parent;
	
	/**
	 * Conference Assistant Image
	 */
	private final JLabel my_imageLabel;
	
	/**
	 * WelcomeCenterPanel Constructor
	 * 
	 * @param parentFrame Parent Frame
	 */
	public WelcomeCenterPanel(final CAFrame parentFrame) {
		my_parent = parentFrame;
		my_imageLabel = new JLabel();
		
		init();
	}
	
	/**
	 * Center Panel Initialization
	 */
	private void init() {
		setLayout(new FlowLayout());
		setBackground(new Color(255,255,255,0));
		
		final Border matteBorder = 
			BorderFactory.createMatteBorder(5, 5, 5, 5, Color.BLACK);
		
		my_imageLabel.setIcon(new ImageIcon(CA_IMAGE));
		my_imageLabel.setBorder(matteBorder);
		add(my_imageLabel);
	}
}
